#例9-8使用readlines()方法读取文本文件
with open("studentinfo.txt",mode='r') as f1:
    for line in f1.readline():
        line_str=line.rstrip('\n')
        print(line_str)
